package com.demo.springboot;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

// 一般用在业务逻辑层
@Service
public class UserService {

    @Autowired
    @Qualifier("createUserDao2")
    private UserDao userDao;

    @Override
    public String toString() {
        return "UserService{" +
            "userDao=" + userDao +
            '}';
    }
}
